#! /bin/sh

# global variable
nowtimestamp=`date +%s`

# data capture
/usr/bin/php /var/www/tdata/fetch/bet365.php $nowtimestamp >> /var/www/tdata/fetch/log/bet365.log 2>/dev/null
/usr/bin/php /var/www/tdata/fetch/188bet.php $nowtimestamp >> /var/www/tdata/fetch/log/188bet.log 2>/dev/null
wait

# data analysis
/usr/bin/php /var/www/tdata/fetch/pair.php $nowtimestamp >> /var/www/tdata/fetch/log/pair.log 2>/dev/null

# half compare apply model
/usr/bin/php /var/www/tdata/fetch/apply_halfcomp.php $nowtimestamp >> /var/www/tdata/fetch/log/apply_halfcomp.log 2>/dev/null
